package com.example.radiscache.service;

import com.example.commonsinterface.dto.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "COMMONS-INTERFACE")
public interface WeatherSearch {

    @GetMapping("/search")
    public WeatherResponse search(@RequestParam("cityid")  String cityid);
}
